/*              Copyright(c) 2008 Dave Sexton              *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace DaveSexton.Sandcastle
{
	public sealed class UrlMappingReference
	{
		#region Public Properties
		public UrlMappingGroup Group
		{
			get
			{
				return group;
			}
		}

		public UrlMapping Mapping
		{
			get
			{
				return mapping;
			}
		}
		#endregion

		#region Private / Protected
		private readonly UrlMappingGroup group;
		private readonly UrlMapping mapping;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="UrlMappingReference" /> class.
		/// </summary>
		public UrlMappingReference(UrlMappingGroup group, UrlMapping mapping)
		{
			if (group == null)
				throw new ArgumentNullException("group");

			this.group = group;
			this.mapping = mapping;
		}
		#endregion
	}
}
